<?php

namespace app\controller;

use app\BaseController;

class IndexController extends BaseController
{
    public function welcome(){
        return 'Hello Eleming';
    }

    public function password($psd){
        return json([
            'password' =>  $psd,
            'hash_password' =>  password_hash($psd, PASSWORD_DEFAULT)
        ]);
    }

    public function phpinfo(){
        phpinfo();
    }
}

